# parallel downloading
# pacman -S --needed --noconfirm aria2 axel
# XferCommand = /usr/bin/aria2c --async-dns=false --allow-overwrite=true --continue=true --file-allocation=none --log-level=error --max-tries=2 --max-connection-per-server=16 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --summary-interval=60 --timeout=5 --dir=/ --out %o %u
# XferCommand = /usr/bin/axel -n 10 -o %o %u
# XferCommand = /usr/bin/aria2c --async-dns=false --user-agent='Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0' --split=16 --max-connection-per-server=10 --min-split-size=5M --dir=/ --out %o %u
XferCommand = /usr/bin/aria2c --async-dns=false --user-agent=Chrome --split=16 --max-connection-per-server=10 --min-split-size=1M --dir=/ --out %o %u
# makepkg.conf
mkdir ~/.aria2
echo 'async-dns=false
min-split-size=1M
split=16
max-connection-per-server=10
user-agent=Chrome' > ~/.aria2/aria2.conf
'http::/usr/bin/aria2c --out %o %u'
'https::/usr/bin/aria2c --out %o %u'

https://mirrors.aliyun.com/arch4edu/x86_64/visual-studio-code-bin-1.91.0-1-x86_64.pkg.tar.zst


# debian
sudo echo 'deb [signed-by=/etc/apt/keyrings/apt-fast.gpg] http://ppa.launchpad.net/apt-fast/stable/ubuntu focal main' > /etc/apt/sources.list.d/apt-fast.list
sudo echo 'deb deb [trusted=yes] http://ppa.launchpad.net/apt-fast/stable/ubuntu focal main' > /etc/apt/sources.list.d/apt-fast.list
mkdir -p /etc/apt/keyrings
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA2166B8DE8BDC3367D1901C11EE2FF37CA8DA16B" | gpg --dearmor -o /etc/apt/keyrings/apt-fast.gpg
apt-get update
apt-get install apt-fast